import layout from '@/layout'
export default {
  path: '/cheHang',
  component: layout,
  meta: {
    title: '车辆管理',
    icon: 'el-icon-files'
  },
  children: [
    {
      path: '/cheHangManagement', // 二级路由的路径，
      name: 'cheHangManagement',
      component: () => import('@/views/cheManagement/cheHangManagement.vue'),
      meta: {
        title: '车型管理',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/cheHangList', // 二级路由的路径，
      name: 'cheHangList',
      component: () => import('@/views/cheManagement/cheHangList.vue'),
      meta: {
        title: '车行列表',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/cheHangList/detail/:id?', // 员工详情的地址
      component: () => import('@/views/cheManagement/components/VehicleDetail'),
      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '车辆详情' // 显示在导航的文本
      }
    },
    {
      path: '/carriaGe', // 二级路由的路径，
      name: 'carriaGe',
      component: () => import('@/views/cheManagement/carriaGe.vue'),
      meta: {
        title: '回车登记',
        icon: 'el-icon-some-icon'
      }
    }
  ]
}
